package cn.learn.server;

import java.nio.ByteBuffer;

public class Request {
    public final long sessionId;

    public long zxid = -1;

    public final int cxid;

    public final int type;

    public final ByteBuffer request;

    public final NettyServerCnxn cnxn;

    public Request(NettyServerCnxn cnxn, long sessionId, int xid, int type, ByteBuffer bb) {
        this.cnxn = cnxn;
        this.sessionId = sessionId;
        this.cxid = xid;
        this.type = type;
        this.request = bb;
    }
}
